package com.bonc.modules.rpt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonc.datasource.annotation.DataSource;
import com.bonc.factory.PageFactory;
import com.bonc.modules.rpt.dao.ComplainSatisfationAreaDao;
import com.bonc.modules.rpt.entity.AllCmpSatisAreaEntity;
import com.bonc.modules.rpt.param.FixParam;
import com.bonc.modules.rpt.service.FixService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("cmpSatisAreaAll")
@DataSource("data")
public class CmpSatisAreaAllServiceImpl implements FixService{

    @Autowired
    private ComplainSatisfationAreaDao omplainSatisfationAreaDao;

    @Override
    public Page queryPage(FixParam fixParam) {
        Page<AllCmpSatisAreaEntity> page = this.omplainSatisfationAreaDao.allPage(PageFactory.defaultPage(), fixParam);
        return page;
    }

    @Override
    public List<AllCmpSatisAreaEntity> queryData(FixParam fixParam) {
        return omplainSatisfationAreaDao.allList(fixParam);
    }
}
